﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Templates/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ModuleTrash.aspx.cs" Inherits="VIT.Web.Admin.ModuleTrash" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="<%=URLRoot %>Admin/Includes/VIT.js"></script>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
<form id="aspnetForm" runat="server">

    <asp:Panel ID="pnAlert" runat="server">
        <p class="msg info" id="lblXoaVinhVien" runat="server" visible="false">Dữ liệu đã bị xóa vĩnh viễn.</p>
        <p class="msg info" id="lblPhucHoiThanhCong" runat="server" visible="false">Phục hồi thành công.</p>
        <p class="msg error" id="lblChon" runat="server" visible="false">Vui lòng thực hiện một lựa chọn từ danh sách.</p>
	</asp:Panel>

    <div class="toolbar">
        <asp:Button ID="btBack" runat="server" ToolTip="Phục hồi" CssClass="icon-32-restore" BorderStyle="None" OnClick="btBack_Click" OnClientClick="return hasCheck('itemCheckbox','Vui lòng chọn một mục để phục hồi');"/>            
        <asp:Button ID="btDelete" runat="server" ToolTip="Xóa vĩnh viễn" CssClass="icon-32-delete" BorderStyle="None" OnClick="btDelete_Click" OnClientClick="return hasCheck('itemCheckbox','Vui lòng chọn mục cần xóa') && confirm('Xóa vĩnh viễn các mục được chọn');"/>
    </div>
    <div class="clr"></div>

    <div>
        <table>
            <thead>
	            <tr>
		            <th width="2%">#</th>
		            <th width="2%">
			            <input type="checkbox" name="toggle" id="toggle" onclick="checkAll('toggle', 'itemCheckbox')"/>
	                </th>
                    <th width="5%">ID</th>
		            <th>Name</th>
                    <th>Param</th>
                    <th>TemplateName</th>
                    <th>TemplatePosition</th>
                    <th>ComponentName</th>
                    <th>ViewName</th>
                    <th>ComponentPosition</th>
                    <th><VIT:LinkSubmit ID="lblCreateDate" runat="server" Param="CreateDate" ViewStateMode="Disabled" OnClick="sortedChange_OnClick">Ngày tạo</VIT:LinkSubmit></th>
                    <th><VIT:LinkSubmit ID="lblModifyDate" runat="server" Param="ModifyDate" ViewStateMode="Disabled" OnClick="sortedChange_OnClick">Ngày sửa</VIT:LinkSubmit></th>
                    <th><VIT:LinkSubmit ID="lblCreateByUser" runat="server" Param="CreateByUser" ViewStateMode="Disabled" OnClick="sortedChange_OnClick">Người tạo</VIT:LinkSubmit></th>
                    <th><VIT:LinkSubmit ID="lblModifyByUser" runat="server" Param="ModifyByUser" ViewStateMode="Disabled" OnClick="sortedChange_OnClick">Người sửa</VIT:LinkSubmit></th>
                    <th><VIT:LinkSubmit ID="lblDeleteByUser" runat="server" Param="DeleteByUser" ViewStateMode="Disabled" OnClick="sortedChange_OnClick">Người xóa</VIT:LinkSubmit></th>
	            </tr>			
            </thead>
            <tbody>
                <asp:Repeater ID="rpt" runat="server">
		            <ItemTemplate>
		            <tr class="row<%#Container.ItemIndex%2 %>">
		            <td align="center"><%#Container.ItemIndex %></td>
	                    <td align="center">
		                    <input type="checkbox" name="itemCheckbox" value="<%#Eval("Id")%>" />
                        </td>
                        <td align="center"><%#Eval("id")%></td>	
	                    <td align="left"><%#Eval("Name")%></td>
                        <td align="left"><%#Eval("Param")%></td>
                        <td align="left"><%#Eval("TemplateName")%></td>
                        <td align="left"><%#Eval("TemplatePosition")%></td>
                        <td align="left"><%#Eval("ComponentName")%></td>
                        <td align="left"><%#Eval("ViewName")%></td>
                        <td align="left"><%#Eval("ComponentPosition")%></td>
	                    <td align="center"><%#Eval("CreateDate")%></td>
                        <td align="center"><%#Eval("ModifyDate")%></td>
                        <td align="center"><%#Eval("CreateByUser")%></td>
                        <td align="center"><%#Eval("ModifyByUser")%></td>
                        <td align="center"><%#Eval("DeleteByUser")%></td>               
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            </tbody>
        </table>
    </div>
</form>
    <script type="text/javascript">
        $("#aside ul li#ModuleTrash").addClass("submenu-active");
    </script>
</asp:Content>
